// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_SAVED_PRODUCT_TECHNIC_ITEM
// * CreateDate    : 2011-11-14 09:57:39
// * Creater       : CodeSmith
// * LastChangeDate: 2011-11-14 09:57:39
// * LastChanger   : 2011-11-14 09:57:39
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class ProdSavedProductTechnicItemEntity : EntityBase
    {
        public ProdSavedProductTechnicItemTable TableSchema
        {
            get
            {
                return ProdSavedProductTechnicItemTable.Current;
            }
        }

        public ProdSavedProductTechnicItemEntity()
        {

        }

        public ProdSavedProductTechnicItemEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.ProductTechnicItemId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_TECHNIC_ITEM_ID"]));
            this.ProductTechnicId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_TECHNIC_ID"]));
            this.Sequence = Convert.ToInt32(CommonFunctions.ToObject(dr["SEQUENCE"]));
            this.TechnicId = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_ID"]));
            this.GroupId = Convert.ToString(CommonFunctions.ToObject(dr["GROUP_ID"]));
            this.PlanWorkingHour = Convert.ToDecimal(CommonFunctions.ToObject(dr["PLAN_WORKING_HOUR"]));
            this.Coefficient = Convert.ToDecimal(CommonFunctions.ToObject(dr["COEFFICIENT"]));
            this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
            this.Price = Convert.ToDecimal(CommonFunctions.ToObject(dr["PRICE"]));
        }

        public ProdSavedProductTechnicItemEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.ProductTechnicItemId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_TECHNIC_ITEM_ID"]));
            this.ProductTechnicId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_TECHNIC_ID"]));
            this.Sequence = Convert.ToInt32(CommonFunctions.ToObject(dr["SEQUENCE"]));
            this.TechnicId = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_ID"]));
            this.GroupId = Convert.ToString(CommonFunctions.ToObject(dr["GROUP_ID"]));
            this.PlanWorkingHour = Convert.ToDecimal(CommonFunctions.ToObject(dr["PLAN_WORKING_HOUR"]));
            this.Coefficient = Convert.ToDecimal(CommonFunctions.ToObject(dr["COEFFICIENT"]));
            this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
            this.Price = Convert.ToDecimal(CommonFunctions.ToObject(dr["PRICE"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdSavedProductTechnicItemTable.Current;
            }
        }

        #region Perporty List
        public string ProductTechnicItemId
        {
            get { return Convert.ToString(GetData(ProdSavedProductTechnicItemTable.C_PRODUCT_TECHNIC_ITEM_ID)); }
            set { SetData(ProdSavedProductTechnicItemTable.C_PRODUCT_TECHNIC_ITEM_ID, value); }
        }

        public string ProductTechnicId
        {
            get { return Convert.ToString(GetData(ProdSavedProductTechnicItemTable.C_PRODUCT_TECHNIC_ID)); }
            set { SetData(ProdSavedProductTechnicItemTable.C_PRODUCT_TECHNIC_ID, value); }
        }

        public int Sequence
        {
            get { return Convert.ToInt32(GetData(ProdSavedProductTechnicItemTable.C_SEQUENCE)); }
            set { SetData(ProdSavedProductTechnicItemTable.C_SEQUENCE, value); }
        }

        public string TechnicId
        {
            get { return Convert.ToString(GetData(ProdSavedProductTechnicItemTable.C_TECHNIC_ID)); }
            set { SetData(ProdSavedProductTechnicItemTable.C_TECHNIC_ID, value); }
        }

        public string GroupId
        {
            get { return Convert.ToString(GetData(ProdSavedProductTechnicItemTable.C_GROUP_ID)); }
            set { SetData(ProdSavedProductTechnicItemTable.C_GROUP_ID, value); }
        }

        public decimal PlanWorkingHour
        {
            get { return Convert.ToDecimal(GetData(ProdSavedProductTechnicItemTable.C_PLAN_WORKING_HOUR)); }
            set { SetData(ProdSavedProductTechnicItemTable.C_PLAN_WORKING_HOUR, value); }
        }

        public decimal Coefficient
        {
            get { return Convert.ToDecimal(GetData(ProdSavedProductTechnicItemTable.C_COEFFICIENT)); }
            set { SetData(ProdSavedProductTechnicItemTable.C_COEFFICIENT, value); }
        }

        public string Remark
        {
            get { return Convert.ToString(GetData(ProdSavedProductTechnicItemTable.C_REMARK)); }
            set { SetData(ProdSavedProductTechnicItemTable.C_REMARK, value); }
        }

        public decimal Price
        {
            get { return Convert.ToDecimal(GetData(ProdSavedProductTechnicItemTable.C_PRICE)); }
            set { SetData(ProdSavedProductTechnicItemTable.C_PRICE, value); }
        }

        #endregion
    }


}

